package com.zhxy.gps.terminal.message;

/**
 * 请求接入系统消息
 * @author 刘勉
 *
 */
public class AccessMessage extends AbstractMessage {

	private static final long serialVersionUID = -1724168332287082004L;
	
	private String deviceSerial;
	
	public AccessMessage() {
		this(null);
	}

	public AccessMessage(String deviceSerial) {
		name = "access";
		this.deviceSerial = deviceSerial;
	}

	public String getDeviceSerial() {
		return deviceSerial;
	}

	@Override
	public boolean hasResponse() {
		return true;
	}
	
	@Override
	public String toString() {
		return "AccessMessage [deviceSerial=" + deviceSerial + "]";
	}
}
